package com.ebook.database.dao;

import com.ebook.entity.Category;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryDao {
    Integer getCategoryIdByCategoryName(String category_name);
    List<Category> getCategoryByPid(Integer pid);
    List<Category> getAllFirstLevelCategory();
    Category getCategoryById(Integer id);
    Category getCategoryByCategoryName(String category_name);
    List<String> getAllFirstLevelCategoryName();
    List<String> getCategoryNameByPid(Integer pid);
}
